﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BI.CF.Model;
using BI.CF.BLL;

namespace BackStage.Hand
{
    /// <summary>
    /// User_Update 的摘要说明
    /// </summary>
    public class User_Update : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            UsersBLL bll = new UsersBLL();
            UserrsModel m = new UserrsModel();
            m.UserId=Convert.ToInt32( context.Request["id"]);
            m.HeadImage = context.Request["img"];
            m.UserName = context.Request["name"];
            m.IdCard = context.Request["carid"];
            m.UserSex = context.Request["sex"];
            m.UserEmail = context.Request["email"];
            m.UserPhone = context.Request["phone"];
            m.UserTel = context.Request["tel"];

           


            m.MIncome = Convert.ToDecimal(context.Request["yueshouru"]);
            m.UserrPlaceOrigin = context.Request["jiguan"];
            m.UserrRealName = context.Request["readname"];
            m.UserrOccupation = context.Request["zhiye"];
            m.UserAge = Convert.ToInt32(context.Request["age"]);
            m.UserEducation = context.Request["xueli"];
            m.Creditlimit = Convert.ToInt32(context.Request["xinyongedu"]);
            m.UserMemlevelId = Convert.ToInt32(context.Request["huiyuanjibie"]);
            m.UserrAddres = context.Request["juzhudi"];
            int i= bll.Users_GetUpdate(m);
            context.Response.Write(i);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}